#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[] = { 1,2,1,3,4,4 };
	int i = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (i = 0; i < sz; i++)
	{
		int num = 0;
		if (arr[i] != 0)
		{
			int j = 0;
			for (j = i + 1; j < sz; j++)
			{
				if (arr[j] == arr[i])
				{
					num++;
					arr[j] = 0;
				}
			}
			if (num % 2 == 0 )
				printf("%d ", arr[i]);
		}
	}
	return 0;
}